package smartlifev30.com.sdk.bean.response;

import java.util.List;

/**
 * 获取设备状态
 * Created by uesr on 2018/8/10.
 */

public class DeviceStatusResponse {

    /**
     * api_version : 0.1
     * device_list : [{"device_id":173,"device_status":{"state":"online","status":0}},{"device_id":175,"device_status":{"state":"online","status":0}},{"device_id":179,"device_status":{"state":"online","status":0}},{"device_id":182,"device_status":{"state":"online","status":0}},{"device_id":183,"device_status":{"state":"online","status":1}}]
     * end : 1
     * from : 08541AA74915
     * msg_class : control_mgmt
     * msg_id : ANDzg-013
     * msg_name : device_state_get
     * msg_type : response
     * status : 0
     * to : 18782918305
     * token : bfab8f07-484d-4fad-98f3-7beef13a9f75
     */

    private String api_version;
    private int end;
    private String from;
    private String msg_class;
    private String msg_id;
    private String msg_name;
    private String msg_type;
    private int status;
    private String to;
    private String token;
    private List<DeviceListBean> device_list;

    public String getApi_version() {
        return api_version;
    }

    public void setApi_version(String api_version) {
        this.api_version = api_version;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getMsg_class() {
        return msg_class;
    }

    public void setMsg_class(String msg_class) {
        this.msg_class = msg_class;
    }

    public String getMsg_id() {
        return msg_id;
    }

    public void setMsg_id(String msg_id) {
        this.msg_id = msg_id;
    }

    public String getMsg_name() {
        return msg_name;
    }

    public void setMsg_name(String msg_name) {
        this.msg_name = msg_name;
    }

    public String getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(String msg_type) {
        this.msg_type = msg_type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<DeviceListBean> getDevice_list() {
        return device_list;
    }

    public void setDevice_list(List<DeviceListBean> device_list) {
        this.device_list = device_list;
    }

    public static class DeviceListBean {
        /**
         * device_id : 173
         * device_status : {"state":"online","status":0}
         */

        private int device_id;
        private DeviceStatusBean device_status;

        public int getDevice_id() {
            return device_id;
        }

        public void setDevice_id(int device_id) {
            this.device_id = device_id;
        }

        public DeviceStatusBean getDevice_status() {
            return device_status;
        }

        public void setDevice_status(DeviceStatusBean device_status) {
            this.device_status = device_status;
        }

        public static class DeviceStatusBean {
            /**
             * state : online
             * status : 0
             */

            private String state;
            private int status;
            private int level;
            private int power;
            private int elec;
            private int wake;
            private String lock_mode;

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public int getPower() {
                return power;
            }

            public void setPower(int power) {
                this.power = power;
            }

            public int getElec() {
                return elec;
            }

            public void setElec(int elec) {
                this.elec = elec;
            }

            public int getWake() {
                return wake;
            }

            public void setWake(int wake) {
                this.wake = wake;
            }

            public String getLock_mode() {
                return lock_mode;
            }

            public void setLock_mode(String lock_mode) {
                this.lock_mode = lock_mode;
            }
        }
    }
}
